tboot: Fix return code for S3 integrity
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 19:10:29 +0000 (19:10 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 19:10:29 +0000 (19:10 +0000)
The original patch left in a debug return value from one of the memory
integrity checks.  This patch returns the correct error code in case of a
failure.  This was re-tested to ensure that it still passes for the
expected case.

Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
xen/arch/x86/tboot.c

index ed20e9951ffd021f158ec7dfe3e2df89b215a0ad..e259cd5da1ecea538480fc5fde0fe094762e8c80 100644 (file)
@@ -450,7 +450,7 @@ int tboot_s3_resume(void)
 
     tboot_gen_domain_integrity(g_tboot_shared->s3_key, &mac);
     if ( mac != domain_mac )
-        return 0; /* -3 */
+        return -3;
 
     return 0;
 }